package org.yuanqiframework.yuanqi.boot.sys.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @TableName sys_user
 */
@Data
public class SysUserPswDTO implements Serializable {
    /**
     * 旧密码
     */
    @NotBlank(message = "[旧密码]不能为空")
    @Size(max = 255, message = "编码长度不能超过255")
    @Length(max = 255, message = "编码长度不能超过255")
    private String oldPassword;

    @NotBlank(message = "[新密码]不能为空")
    @Size(max = 255, message = "编码长度不能超过255")
    @Length(max = 255, message = "编码长度不能超过255")
    private String newPassword;
}
